{% extends 'base_registration.html' %}

{% block title %}register for an account{% endblock %}

{% block content %}
<h2>register</h2>

{% if form.errors %}
<p class="error">please correct the errors below</p>
{{ form.errors }}
{% endif %}

<form method="post" action="">
<dl>
<dt>{{ form.username.label_tag }}{% if form.username.errors %} <span class="error">{{ form.username.errors|join:", " }}</span>{% endif %}:</dt>
<dd>{{ form.username }}</dd>
<dt>{{ form.email.label_tag }}{% if form.email.errors %} <span class="error">{{ form.email.errors|join:", " }}</span>{% endif %}:</dt>
<dd>{{ form.email }}</dd>
<dt>{{ form.password1.label_tag }}{% if form.password1.errors %} <span class="error">{{ form.password2.errors|join:", " }}</span>{% endif %}:</dt>
<dd>{{ form.password1 }}</dd>
<dt>{{ form.password2.label_tag }}{% if form.password2.errors %} <span class="error">{{ form.password2.errors|join:", " }}</span>{% endif %}:</dt>
<dd>{{ form.password2 }}</dd>

<dt><input type="submit" value="register" /></dt>
</dl>
</form>

<p>If you already have an account, you can <a href="{% url auth_login %}" title="Log in to your account">log in</a>.</p>
{% endblock content %}